﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

public partial class Control_ddlMoneyUnit : System.Web.UI.UserControl
{
    [Description("設定顯示名"), Category("MISAPP"), DefaultValue("設定顯示名")]
    public string Caption
    {
        set;
        get;
    }


    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string GetSelectUnit()
    {
        string result = string.Empty;
        foreach (ListItem itm in ddl_moneyUnit.Items)
        {
            if (itm.Selected == true)
            {
                result = itm.Value;
            }
        }
        return result;
    }
}
